home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / AccessibleTable.java < prev    next >
Text File  |  1998-06-30  |  3KB  |  105 lines

  1. /*
  2.  * @(#)AccessibleTable.java    1.6 98/02/18
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.accessibility;
  22.  
  23. /**
  24.  * The AccessibleTable interface is currently up for review and should
  25.  * only be used for experimental purposes.  Interested parties should review
  26.  * this interface and send comments to 
  27.  * <a href="mailto:access@sun.com">access@sun.com</a>.  Based upon feedback
  28.  * from reviewers, we may add a method to AccessibleContext (e.g., 
  29.  * getAccessibleTable) that will return an object that implements this 
  30.  * interface if the Accessible object is a table.
  31.  * 
  32.  * @see Accessible
  33.  * @see AccessibleContext
  34.  *
  35.  * @version     1.6 02/18/98 14:38:34
  36.  * @author    Peter Korn
  37.  */
  38. public interface AccessibleTable {
  39.  
  40.     /**
  41.      * Returns the number of rows in the table
  42.      *
  43.      * @return the number of rows in the table
  44.      */
  45.     public int getAccessibleRowCount();
  46.  
  47.     /**
  48.      * Returns the number of columns in the table
  49.      *
  50.      * @return the zero-based number of columns in the table
  51.      */
  52.     public int getAccessibleColumnCount();
  53.  
  54.     /**
  55.      * Returns the row at a given index into the table
  56.      *
  57.      * @param i zero-based index into the table
  58.      * @return the zero-based row at a given index
  59.      */
  60.     public int getAccessibleRowAtIndex(int i);
  61.  
  62.     /**
  63.      * Returns the column at a given index into the table
  64.      *
  65.      * @param i zero-based index into the table
  66.      * @return the column at a given index
  67.      */
  68.     public int getAccessibleColumnAtIndex(int i);
  69.  
  70.     /**
  71.      * Returns the index at a given (row, column) in the table
  72.      *
  73.      * @param r zero-based row of the table
  74.      * @param c zero-based column of the table
  75.      * @return the index into the table
  76.      */
  77.     public int getAccessibleIndexAt(int r, int c);
  78.  
  79.     /**
  80.      * Returns the Accessible at a given (row, column) in the table
  81.      *
  82.      * @param r zero-based row of the table
  83.      * @param c zero-based column of the table
  84.      * @return the Accessible at the specified (row, column)
  85.      */
  86.     public Accessible getAccessibleAt(int r, int c);
  87.  
  88.     /**
  89.      * Return the header text of the specified row in the tabe
  90.      *
  91.      * @param r zero-based row of the table
  92.      * @return the text header of the row
  93.      */
  94.     public Accessible getAccessibleRowHeader(int r);
  95.  
  96.     /**
  97.      * Return the header text of the specified column in the table
  98.      *
  99.      * @param c zero-based column of the table
  100.      * @return the text header of the column
  101.      */
  102.     public Accessible getAccessibleColumnHeader(int c);
  103.  
  104. }
  105.